package com.naiterui.ehp.bs.recommend.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.naiterui.ehp.bp.support.security.InterceptorAddition;
import com.naiterui.ehp.bs.recommend.interceptor.LoginInterceptor;

import lombok.extern.slf4j.Slf4j;

/**
 * @author guoyongxiang
 */
@Slf4j
@Configuration
public class RecommendInterceptorConfig {

    @Bean
    public InterceptorAddition recommendLoginInterceptor() {
        return InterceptorAddition.build(new LoginInterceptor()).addPathPatterns("/recommend/**");
    }

}